
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon element-icons el-icon-all"></i>
                    <div class="name">all</div>
                    <div class="fontclass">.el-icon-all</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-delete"></i>
                    <div class="name">delete</div>
                    <div class="fontclass">.el-icon-delete</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-edit"></i>
                    <div class="name">edit</div>
                    <div class="fontclass">.el-icon-edit</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-email"></i>
                    <div class="name">email</div>
                    <div class="fontclass">.el-icon-email</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-favorite"></i>
                    <div class="name">favorite</div>
                    <div class="fontclass">.el-icon-favorite</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-form"></i>
                    <div class="name">form</div>
                    <div class="fontclass">.el-icon-form</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-help"></i>
                    <div class="name">help</div>
                    <div class="fontclass">.el-icon-help</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-information"></i>
                    <div class="name">information</div>
                    <div class="fontclass">.el-icon-information</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-pic"></i>
                    <div class="name">pic</div>
                    <div class="fontclass">.el-icon-pic</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-account"></i>
                    <div class="name">account</div>
                    <div class="fontclass">.el-icon-account</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-add"></i>
                    <div class="name">add</div>
                    <div class="fontclass">.el-icon-add</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-process"></i>
                    <div class="name">process</div>
                    <div class="fontclass">.el-icon-process</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-navlist"></i>
                    <div class="name">nav-list</div>
                    <div class="fontclass">.el-icon-navlist</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-phone"></i>
                    <div class="name">phone</div>
                    <div class="fontclass">.el-icon-phone</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-custom-user"></i>
                    <div class="name">user</div>
                    <div class="fontclass">.el-icon-custom-user</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-logout"></i>
                    <div class="name">Logout</div>
                    <div class="fontclass">.el-icon-logout</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-lock"></i>
                    <div class="name">lock</div>
                    <div class="fontclass">.el-icon-lock</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-exl"></i>
                    <div class="name">exl</div>
                    <div class="fontclass">.el-icon-exl</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-pdf"></i>
                    <div class="name">pdf</div>
                    <div class="fontclass">.el-icon-pdf</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-zip"></i>
                    <div class="name">zip</div>
                    <div class="fontclass">.el-icon-zip</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-file"></i>
                    <div class="name">file</div>
                    <div class="fontclass">.el-icon-file</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-folder-close"></i>
                    <div class="name">文件夹收起</div>
                    <div class="fontclass">.el-icon-folder-close</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-folder-open"></i>
                    <div class="name">文件夹展开</div>
                    <div class="fontclass">.el-icon-folder-open</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-others"></i>
                    <div class="name">others</div>
                    <div class="fontclass">.el-icon-others</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-home"></i>
                    <div class="name">icon_home</div>
                    <div class="fontclass">.el-icon-home</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-browse"></i>
                    <div class="name">browse</div>
                    <div class="fontclass">.el-icon-browse</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-folder"></i>
                    <div class="name">folder</div>
                    <div class="fontclass">.el-icon-folder</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-code"></i>
                    <div class="name">code</div>
                    <div class="fontclass">.el-icon-code</div>
                </li>
            
                <li>
                <i class="icon element-icons el-icon-school"></i>
                    <div class="name">school</div>
                    <div class="fontclass">.el-icon-school</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">element-icons</span> <span class="hljs-selector-tag">el-icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"element-icons"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
